<!--
 * @Author: 15956982113 493885262@qq.com
 * @Date: 2025-05-27 17:00:18
 * @LastEditors: 15956982113 493885262@qq.com
 * @LastEditTime: 2025-05-29 18:04:38
 * @FilePath: \v3-webpack\src\views\HomeView.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
	<div class="home flex-center-align">
		<img alt="Vue logo" src="../assets/logo.png">
		<button @click="goAbout">关于我们</button>
	</div>
	<tabbar modelValue="home" />
</template>

<script setup>
import apiComm from '@/api/common.js'
import tabbar from '@/components/tabbar.vue'
import { useRouter } from 'vue-router'
import { defineOptions } from "vue"
const router = useRouter()
apiComm.listPage({page: 1, pageSize: 10}).then(res => {
	console.log(res)
})
const goAbout = () => {
	router.push('/about')
}
defineOptions({
	name: 'Home' // 这个名称必须与 include 中的名称匹配
})
</script>
<style scoped>
.home {
	width: 750px;
	height: 750px;
	background-color: #f00;
}
</style>